FROM ubuntu:20.04
MAINTAINER jiang_yi_bo@sinzuo.com

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Shanghai



RUN apt-get update -y \
 && apt full-upgrade -y \
 && apt install -y openssh-server ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 \
python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev

RUN mkdir -p /var/run/sshd
RUN ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
ADD ./id_rsa root/.ssh/
ADD ./id_rsa.pub root/.ssh/

ENV FORCE_UNSAFE_CONFIGURE 1
CMD ["/usr/sbin/sshd","-D"]
